﻿package Message.Game
{
    import Framework.Serialize.*;

    public class SBuyBackItem extends Object
    {
        public var uid:String;
        public var itemCode:int;
        public var amount:int;
        public var bind:int;
        public var jsStr:String;
        public var sellTime:Date;
        public var createTime:Date;

        public function SBuyBackItem()
        {
            return;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            param1.writeString(this.uid);
            param1.writeInt(this.itemCode);
            param1.writeInt(this.amount);
            param1.writeByte(this.bind);
            param1.writeString(this.jsStr);
            param1.writeDate(this.sellTime);
            param1.writeDate(this.createTime);
            return;
        }// end function

        public function __read(param1:SerializeStream) : void
        {
            this.uid = param1.readString();
            this.itemCode = param1.readInt();
            this.amount = param1.readInt();
            this.bind = param1.readByte();
            this.jsStr = param1.readString();
            this.sellTime = param1.readDate();
            this.createTime = param1.readDate();
            return;
        }// end function

    }
}
